package structurepattern.proxy;

public class RealImage implements Image {
	private String fileName;
	
	public RealImage(String fileName) {
		this.fileName = fileName;
		loadFromDisk();
	}
	
	@Override
	public void display() {
		System.out.println("Image: RealImage display");
	}
	
	public void loadFromDisk() {
		System.out.println("RealImage: load image from path = " + fileName);
	}
}
